#definition des cibles particulieres
.PHONY: clean,mrproper

CPP=g++
CFLAGS = -W -Wall
EXEC = NETG
SRC = $(wildcard *.cpp)
OBJ = $(SRC:.cpp = .o)

all: $(EXEC)
$(EXEC):$(OBJ)
	$(CPP)   -o $@ $^
%.o:%.cpp
	$(CPP) -c $^ $(CFLAGS)

clean:
	rm -rf *.o
	rm -rf $(EXEC)
